]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
workspacesView: Fix copy-paste error
authorIvan Molodetskikh <yalterz@gmail.com>
Sun, 27 Dec 2020 19:33:34 +0000 (19:33 +0000)
committerFlorian Müllner <fmuellner@gnome.org>
Sun, 27 Dec 2020 21:12:08 +0000 (22:12 +0100)
Calling both window-drag handlers on drag begin messes up our tracking,
and prevents the swipe tracker from being disabled during drag operations.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1551>

js/ui/workspacesView.js

index cccd447e26bd7ede6dee458a2a1fda8b8ce004b2..4a11f088892c2d98ccb141bdacbc6120aead43bd 100644 (file)
@@ -394,7 +394,7 @@ class WorkspacesDisplay extends St.Widget {
             Main.overview.connect('window-drag-begin',
                 this._windowDragBegin.bind(this));
         this._windowDragEndId =
-            Main.overview.connect('window-drag-begin',
+            Main.overview.connect('window-drag-end',
                 this._windowDragEnd.bind(this));
         this._overviewShownId = Main.overview.connect('shown', () => {
             this._inWindowFade = false;